package com.zhongli.devplatform.po.sys;

import com.baomidou.mybatisplus.annotation.*;
import com.zhongli.devplatform.po.common.ReadGradePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@ApiModel(value="com-zhongli-devplatform-po-ReadChapter")
@Data
@TableName(value = "read_chapter")
public class ReadChapterPO {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 科目信息
     */
    @TableField(value = "subject_id")
    @ApiModelProperty(value="科目信息")
    private Integer subjectId;

    @TableField(exist = false)
    private ReadSubjectPO subjectPO;

    /**
     * 年级信息
     */
    @TableField(value = "grade_id")
    @ApiModelProperty(value="年级信息")
    private Integer gradeId;

    @TableField(exist = false)
    private ReadGradePO gradePO;

    /**
     * 班级信息
     */
    @TableField(value = "class_id")
    @ApiModelProperty(value="班级信息")
    private Integer classId;

    /**
     * 章节数
     */
    @TableField(value = "count")
    @ApiModelProperty(value="章节数")
    private Integer count;

    /**
     * 章节标题，多个以逗号隔开
     */
    @TableField(value = "chapter_title")
    @ApiModelProperty(value="章节标题，多个以逗号隔开")
    private String chapterTitle;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    private Integer createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    @TableField(value = "update_user_id",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Integer updateUserId;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Date updateTime;
}
